package ru.len.cafe.entity.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * This class is an Entity, that represents actual table at the Restraunt
 * @author Stanislav Chetvertkov
 */

@Entity
@Table(name="CafeTable")
public class CafeTable {

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private Long id;
    @Column( nullable = false )
    private int tableNumber;
    @Column
    private String description;
    
    @Enumerated(EnumType.STRING)
    private CafeTableStatusType cafeTableStatusType;;
    
    /* GETTERS AND SETTERS */
    
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public int getTableNumber() {
        return tableNumber;
    }
   
    public void setTableNumber(int tableNumber) {
        this.tableNumber = tableNumber;
    }
    
    public CafeTableStatusType getCafeTableStatusType() {
        return cafeTableStatusType;
    }
    public void setCafeTableStatusType(CafeTableStatusType cafeTableStatusType) {
        this.cafeTableStatusType = cafeTableStatusType;
    }
    
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
		
}
